<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	  xmlns:ui="http://java.sun.com/jsf/facelets"
	  xmlns:h="http://java.sun.com/jsf/html"
	  xmlns:f="http://java.sun.com/jsf/core">
	<head><title>IGNORED</title></head>
	<body>
		<ui:composition template="../templates/layout.xhtml">
			<ui:define name="windowTitle">Daily Market | Partners | Company Page</ui:define>
			<ui:define name="logoImage"><h:graphicImage library="images" name="logo_header.jpg" alt="logo" /></ui:define>
			<ui:define name="content">
				<script type="text/javascript" src="../resources/js/tiny_mce/tiny_mce.js" ></script>
				<script type="text/javascript">
tinyMCE.init({
        mode : "textareas",
        theme : "advanced",
		theme_advanced_toolbar_location : "top",
		theme_advanced_toolbar_align : "left",
        width : "500",
        height : "360"
 });
				</script>
				<div id="content" class="graphic_bg">
					<h:form>
						<f:event type="preRenderComponent" listener="#{partnerCompanyProfileBean.preRenderProfileEditor}" />
						<div class="form-row header">Company Profile Page Editor</div>
						<div class="form-row">
							<h:outputLabel for="company_name" styleClass="form-row">Company Name:</h:outputLabel>
							<h:inputText id="company_name" value="#{partnerCompanyProfileBean.currentProfile.companyName}" />
						</div>
						<div class="form-row no-height">
							<h:inputTextarea id="page-content" value="#{partnerCompanyProfileBean.currentProfile.profilePage}" />
						</div>
						<div class="form-row submit">
							<h:commandLink action="#{partnerCompanyProfileBean.doSaveCompanyProfile}" styleClass="image-button no-height"><h:graphicImage library="images/icons/16" name="page_save.png" alt="s" title="Save" styleClass="with-text"/>Save</h:commandLink>
						</div>
						<h:messages styleClass="form-messages" fatalClass="form-messages error" errorClass="form-messages error" warnClass="form-messages warn" infoClass="form-messages good" />
					</h:form>
				</div>
			</ui:define>
		</ui:composition>
	</body>
</html>